<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->_tpl_vars['type']['typename'] ?> - <?php echo $this->_tpl_vars['lngpack']['sitename'] ?></title>
<meta name="keywords" content="<?php echo $this->_tpl_vars['lngpack']['keyword'] ?>" />
<meta name="description" content="<?php echo $this->_tpl_vars['lngpack']['description'] ?>" />
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery-1.js"></script>
<script type="text/javascript">
//交易默认为出金操作
var transactionType = 0;
function <?php echo $this->_tpl_vars['form']['formcode'] ?>form(seccodetype) {
	var amount = $('input[name="Amount"]').val();
	amount = $.trim(amount);
	if(amount.length < 1) {
		$('input[name="Amount"]').focus();
		alert("Amount can't be blank!");
		return false;
	}
	
	var amountVal = $('td').last().text();
	if(transactionType == 0) {
		if(parseFloat($('input[name="Amount"]').val()) >= parseFloat(amountVal)) {
			alert("Withdraw must be less than free margin");
			return false;
		}
	}

	var memberName = $('input[name="memberName"]').val();
	memberName = $.trim(memberName);
	if(memberName.length < 1) {
		$('input[name="memberName"]').focus();
		alert("Account Name can't be blank！");
		return false;
	}
	
	var memberNO = $('input[name="memberNO"]').val();
	memberNO = $.trim(memberNO);
	if(memberNO.length < 1) {
		$('input[name="memberNO"]').focus();
		alert("Trading account can't be blank！");
		return false;
	}

	var patrn=/^[0-9]{6}$/;  
	if(!patrn.exec(memberNO)) {
		$('input[name="memberNO"]').focus();
		alert("Trading account length only for 6 figures");
		return false;
	}
	
	var memberMobile = $('input[name="memberMobile"]').val();
	memberMobile = $.trim(memberMobile);
	if(memberMobile.length < 1) {
		$('input[name="memberMobile"]').focus();
		alert("Mobile can't be blank！");
		return false;
	}
	
	var memberEmail = $('input[name="memberEmail"]').val();
	memberEmail = $.trim(memberEmail);
	if(memberEmail.length < 1) {
		$('input[name="memberEmail"]').focus();
		alert("Email can't be blank！");
		return false;
	}
	
	var bankName = $('input[name="bankName"]').val();
	bankName = $.trim(bankName);
	if(bankName.length < 1) {
		$('input[name="bankName"]').focus();
		alert("Bank name can't be blank！");
		return false;
	}
	
	if (transactionType == 0) {
		var bankAccount = $('input[name="bankAccount"]').val();
		bankAccount = $.trim(bankAccount);
		if(bankAccount.length < 1) {
			$('input[name="bankAccount"]').focus();
			alert("Bank account can't be blank！");
			return false;
		}
		
		var memberIDCard = $('input[name="memberIDCard"]').val();
		memberIDCard = $.trim(memberIDCard);
		if(memberIDCard.length < 1) {
			$('input[name="memberIDCard"]').focus();
			alert("Swift code can't be blank！");
			return false;
		}
	}
	
	
}
function transactionTypeSelect(obj) {
        if (obj.value == 'deposit') {
			transactionType = 1;
            $('#bankName_alert').hide();
            $('#bankAccount_id').hide();
            //$('#currency_id').hide();
            $('#Amount_alert').hide();
			$('#memberIDCard_id').hide();
            $('#bank_info').show();
        } else {
			transactionType = 0;
            $('#bankName_alert').show();
            $('#bankAccount_id').show();
            //$('#currency_id').show();
            $('#Amount_alert').show();
			$('#memberIDCard_id').show();
            $('#bank_info').hide();
        }
}
</script>
    </head>
    <body>
        <div class="all">
            885BA145EFC8431D34F5CC06D142F143default/en/public/head.html|885BA145EFC8431D34F5CC06D142F143
            <div class="content" style="min-height:10px">
                <h2 class="title"><?php echo $this->_tpl_vars['type']['typename'] ?></h2>
                <div style="margin-top: 10px">
                    826870a379354a6b252b0af7b0331b7fdefault/metaTrader/index_en.php|826870a379354a6b252b0af7b0331b7f
                </div>
            </div>
            <div class="dengluz zhuce" style="padding-top: 0px;float: left;width: auto;">
                <div style="width: auto;float: left">
                    <form name="<?php echo $this->_tpl_vars['form']['formcode'] ?>" id="<?php echo $this->_tpl_vars['form']['formcode'] ?>" method="post" action="<?php echo $this->_tpl_vars['form']['action'] ?>"  onSubmit="return <?php echo $this->_tpl_vars['form']['formcode'] ?>form('<?php echo $this->_tpl_vars['form']['isseccode'] ?>')">
                        <input type="hidden" name="linkurl" value="add">
                        <input type="hidden" name="fgid" id="fgid" value="<?php echo $this->_tpl_vars['form']['fgid'] ?>">
                        <input type="hidden" name="formcode" id="formcode" value="<?php echo $this->_tpl_vars['form']['formcode'] ?>">
                        <?php if (count($this->_tpl_vars['array'])>0){$divid_i=1;for($i=0;$i<count($this->_tpl_vars['array']); $i++){?>
                            <?php if($this->_tpl_vars['array'][$i]['isline']==1){ ?>
                                <?php echo $this->_tpl_vars['array'][$i]['typename'] ?> 
                            <?php }else{ ?>
                                <div id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>_id">
                                    <span style="width: 190px"><?php echo $this->_tpl_vars['array'][$i]['typename'] ?>:</span>
                                    <?php if($this->_tpl_vars['array'][$i]['inputtype']=='string'){ ?>
                                        <input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" maxlength="<?php echo $this->_tpl_vars['array'][$i]['attrlenther'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?>" class="input1"/>
                                        <?php if($this->_tpl_vars['array'][$i]['typeremark']!=''){ ?>
                                            <div id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>_alert" class="con_text" style="color: red;display: inline"><?php echo $this->_tpl_vars['array'][$i]['typeremark'] ?>
                                            </div>
                                        <?php } ?>
                                        <br />
                                    <?php } ?>

                                    <?php if($this->_tpl_vars['array'][$i]['inputtype']=='radio'){ ?>
                                        <div style="display:inline">
										<?php if (count($this->_tpl_vars['array'][$i]['attrvalue'])>0){$divid_ii=1;for($ii=0;$ii<count($this->_tpl_vars['array'][$i]['attrvalue']); $ii++){?>
										    <input style="height:27px; margin-bottom:5px; vertical-align: middle" onclick="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>Select(this);" <?php if($this->_tpl_vars['array'][$i]['attrvalue'][$ii]['selected']=='selected'){ ?>checked="checked" <?php } ?>name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?><?php echo ii ?>" type="radio" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>" /> <?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>
                                        <?php }} ?>
										</div>
                                        <br />
                                    <?php } ?>                                
                                </div>    
                            <?php } ?>
                        <?php }} ?>

                        <?php if($this->_tpl_vars['form']['isseccode']==1){ ?>
                            <div id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>_id" >
                                <span style="width: 190px">Check code:</span>
                                <input type="text" id="code" name="seccode" style="width: 70px;margin-right: 5px" class="input1" maxlength="4" size="3" style="text-transform: uppercase;"/>
                                <img title="Try a new code" id="<?php echo $this->_tpl_vars['form']['formcode'] ?>seccodesrc" onClick="sessionimg('<?php echo $this->_tpl_vars['form']['formcode'] ?>seccodesrc','<?php echo $this->_tpl_vars['rootdir'] ?>')" src="<?php echo $this->_tpl_vars['seccodelink'] ?>" style="cursor: pointer;" align="absmiddle"/>
                            </div>
                        <?php } ?>
                        <input style="margin-left:160px" class="submit" type="submit" name="submit" id="<?php echo $this->_tpl_vars['form']['formcode'] ?>botton" value="submit" />
                        <input class="cancel" type="reset" name="reset" value="reset"  />
                    </form>
                </div>
                <div id="bank_info" class="con_text" style="width: auto;display: none;float: right;margin-left: 30px;">
                    Information:<br/><br/>
                    &nbsp;USD<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Bank :Bank of China Hong Kong Limited(Address: 1 Garden Road, Hong Kong)<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Beneficiary :GFX Club Hong Kong Ltd<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Account No.: 012-676-9-214493-1<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Swift Code :BKCHHKHHXXX<br/>
					&nbsp;HKD<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Bank:Bank of China Hong Kong Limited(Address: 1 Garden Road, Hong Kong)<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Beneficiary:GFX Club Hong Kong Ltd<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Account No.: 012-676-9-214493-9<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Swift Code: BKCHHKHHXXX<br/>
					&nbsp;&nbsp;&nbsp;&nbsp;Bank code: 012<br/>

                </div>
            </div>
            
            885BA145EFC8431D34F5CC06D142F143default/en/public/footer.html|885BA145EFC8431D34F5CC06D142F143	
        </div>
    </body>
</html>
